package indi.wshape1.takeawaydeliveryinfo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Wshape1
 * @version 1.0
 * @description 页面入口转发
 * @since 2023-01-17
 */

@Controller
public class PortalController {

    /**
     * 跳转到登录页面
     *
     * @return
     */
    @GetMapping("/")
    public String portal() {
        return "forward:login.html";
    }

    /**
     * 跳转到后台
     *
     * @return
     */
    @GetMapping("/page")
    public String enterPage() {
        return "forward:page.html";
    }

    /**
     * 跳转到客户查询界面
     *
     * @return
     */
    @GetMapping("/query")
    public String enterQuery() {
        return "forward:query.html";
    }


    /**
     * 跳转到更多页面
     *
     * @return
     */
    @GetMapping("/more")
    public String enterMore() {
        return "forward:more.html";
    }

    /**
     * 跳转至修改页面
     *
     * @return
     */
    @GetMapping("/change")
    public String enterChange() {
        return "forward:change.html";
    }


}
